<?php
$this->breadcrumbs = array(
	'Banks'=>array('index'),
	$model->name,
);

$this->menu = array(
	array('label'=>'List Bank', 'url'=>array('index')),
	array('label'=>'Create Bank', 'url'=>array('create')),
	array('label'=>'Update Bank', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Bank', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete', 'id'=>$model->id), 'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Bank', 'url'=>array('admin')),
);
?>

<h1>View Bank #<?php echo $model->id; ?></h1>

<div>
	<?php
	$properties = array(
		'items'=>$model->getMenu($this->action->id, true),
		'htmlOptions'=>array(
			'class'=>'operations',
		),
		'encodeLabel'=>false,
	);
	$this->widget('zii.widgets.CMenu', $properties);
	?>
</div>

<hr />

<table class="collapse">
	<tr>
		<td class="top">
			<?php
			$src = $model->employee->photoBehavior->getFileUrl('thumb');
			$alt = 'Photo';
			$htmlOptions = array(
				'class'=>'stroke round column',
			);
			echo CHtml::image($src, $alt, $htmlOptions);
			?>
		</td>
		<td class="full top">
			<?php
			$this->widget('zii.widgets.CDetailView',
				array(
				'data'=>$model,
				'attributes'=>array(
					'employee.name',
					'name',
					'branch',
					'code',
				),
			));
			?>
		</td
	</tr>
</table>